import request from '@/utils/request'

// 查询教务阶段课程列表
export function listStage(query) {
  return request({
    url: '/educational/stage/list',
    method: 'get',
    params: query
  })
}

// 查询教务阶段课程详细
export function getStage(id) {
  return request({
    url: '/educational/stage/' + id,
    method: 'get'
  })
}

// 新增教务阶段课程
export function addStage(data) {
  return request({
    url: '/educational/stage',
    method: 'post',
    data: data
  })
}

// 修改教务阶段课程
export function updateStage(data) {
  return request({
    url: '/educational/stage',
    method: 'put',
    data: data
  })
}

// 删除教务阶段课程
export function delStage(id) {
  return request({
    url: '/educational/stage/' + id,
    method: 'delete'
  })
}
